3.2.6 \(\int (a+b x)^7 \, dx\) [106]

Optimal. Leaf size=14 \[ \frac {(a+b x)^8}{8 b} \]

[Out]

1/8*(b*x+a)^8/b

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {32} \begin {gather*} \frac {(a+b x)^8}{8 b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)^7,x]

[Out]

(a + b*x)^8/(8*b)

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rubi steps

\begin {align*} \int (a+b x)^7 \, dx &=\frac {(a+b x)^8}{8 b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 14, normalized size = 1.00 \begin {gather*} \frac {(a+b x)^8}{8 b} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)^7,x]

[Out]

(a + b*x)^8/(8*b)

________________________________________________________________________________________

Mathics [B] Leaf count is larger than twice the leaf count of optimal. \(78\) vs. \(2(14)=28\).
time = 1.97, size = 76, normalized size = 5.43 \begin {gather*} \frac {x \left (8 a^7+28 a^6 b x+56 a^5 b^2 x^2+70 a^4 b^3 x^3+56 a^3 b^4 x^4+28 a^2 b^5 x^5+8 a b^6 x^6+b^7 x^7\right )}{8} \end {gather*}

Antiderivative was successfully verified.

[In]

mathics('Integrate[x^0*(a + b*x)^7,x]')

[Out]

x (8 a ^ 7 + 28 a ^ 6 b x + 56 a ^ 5 b ^ 2 x ^ 2 + 70 a ^ 4 b ^ 3 x ^ 3 + 56 a ^ 3 b ^ 4 x ^ 4 + 28 a ^ 2 b ^
5 x ^ 5 + 8 a b ^ 6 x ^ 6 + b ^ 7 x ^ 7) / 8

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 13, normalized size = 0.93

method result size
default \(\frac {\left (b x +a \right )^{8}}{8 b}\) \(13\)
gosper \(\frac {1}{8} b^{7} x^{8}+a \,b^{6} x^{7}+\frac {7}{2} a^{2} b^{5} x^{6}+7 a^{3} b^{4} x^{5}+\frac {35}{4} a^{4} b^{3} x^{4}+7 a^{5} b^{2} x^{3}+\frac {7}{2} a^{6} b \,x^{2}+a^{7} x\) \(76\)
norman \(\frac {1}{8} b^{7} x^{8}+a \,b^{6} x^{7}+\frac {7}{2} a^{2} b^{5} x^{6}+7 a^{3} b^{4} x^{5}+\frac {35}{4} a^{4} b^{3} x^{4}+7 a^{5} b^{2} x^{3}+\frac {7}{2} a^{6} b \,x^{2}+a^{7} x\) \(76\)
risch \(\frac {b^{7} x^{8}}{8}+a \,b^{6} x^{7}+\frac {7 a^{2} b^{5} x^{6}}{2}+7 a^{3} b^{4} x^{5}+\frac {35 a^{4} b^{3} x^{4}}{4}+7 a^{5} b^{2} x^{3}+\frac {7 a^{6} b \,x^{2}}{2}+a^{7} x +\frac {a^{8}}{8 b}\) \(84\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)^7,x,method=_RETURNVERBOSE)

[Out]

1/8*(b*x+a)^8/b

________________________________________________________________________________________

Maxima [A]
time = 0.25, size = 12, normalized size = 0.86 \begin {gather*} \frac {{\left (b x + a\right )}^{8}}{8 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^7,x, algorithm="maxima")

[Out]

1/8*(b*x + a)^8/b

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 75 vs. \(2 (12) = 24\).
time = 0.30, size = 75, normalized size = 5.36 \begin {gather*} \frac {1}{8} \, b^{7} x^{8} + a b^{6} x^{7} + \frac {7}{2} \, a^{2} b^{5} x^{6} + 7 \, a^{3} b^{4} x^{5} + \frac {35}{4} \, a^{4} b^{3} x^{4} + 7 \, a^{5} b^{2} x^{3} + \frac {7}{2} \, a^{6} b x^{2} + a^{7} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^7,x, algorithm="fricas")

[Out]

1/8*b^7*x^8 + a*b^6*x^7 + 7/2*a^2*b^5*x^6 + 7*a^3*b^4*x^5 + 35/4*a^4*b^3*x^4 + 7*a^5*b^2*x^3 + 7/2*a^6*b*x^2 +
 a^7*x

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 83 vs. \(2 (8) = 16\).
time = 0.04, size = 83, normalized size = 5.93 \begin {gather*} a^{7} x + \frac {7 a^{6} b x^{2}}{2} + 7 a^{5} b^{2} x^{3} + \frac {35 a^{4} b^{3} x^{4}}{4} + 7 a^{3} b^{4} x^{5} + \frac {7 a^{2} b^{5} x^{6}}{2} + a b^{6} x^{7} + \frac {b^{7} x^{8}}{8} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)**7,x)

[Out]

a**7*x + 7*a**6*b*x**2/2 + 7*a**5*b**2*x**3 + 35*a**4*b**3*x**4/4 + 7*a**3*b**4*x**5 + 7*a**2*b**5*x**6/2 + a*
b**6*x**7 + b**7*x**8/8

________________________________________________________________________________________

Giac [A]
time = 0.00, size = 12, normalized size = 0.86 \begin {gather*} \frac {\left (b x+a\right )^{8}}{8 b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)^7,x)

[Out]

1/8*(b*x + a)^8/b

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 75, normalized size = 5.36 \begin {gather*} a^7\,x+\frac {7\,a^6\,b\,x^2}{2}+7\,a^5\,b^2\,x^3+\frac {35\,a^4\,b^3\,x^4}{4}+7\,a^3\,b^4\,x^5+\frac {7\,a^2\,b^5\,x^6}{2}+a\,b^6\,x^7+\frac {b^7\,x^8}{8} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x)^7,x)

[Out]

a^7*x + (b^7*x^8)/8 + (7*a^6*b*x^2)/2 + a*b^6*x^7 + 7*a^5*b^2*x^3 + (35*a^4*b^3*x^4)/4 + 7*a^3*b^4*x^5 + (7*a^
2*b^5*x^6)/2

________________________________________________________________________________________